package com.baizan.daka.ui.contract

import com.baizan.daka.base.IPresenter
import com.baizan.daka.base.IView
import com.baizan.daka.mvp.model.bean.QuestionBean
import com.baizan.daka.mvp.model.bean.RegistInfoBean

interface RegisterContract {
    interface View : IView {

        fun registSuccess(code: String)

        fun sendSuccess(registInfo: RegistInfoBean)

        fun getQuestionListSuccess(data: List<QuestionBean>)

        fun findSuccess()
    }

    interface Presenter : IPresenter {

        fun regist(account: String, password: String,
                   invitationCode: String, questionCode:String
                   , questionName:String
                   , questionAnwser:String)

        fun sendCode(phone: String)

        fun getQuestionList()

        fun findPassword(account: String, password: String,questionCode:String
                         , questionName:String
                         , questionAnwser:String)
    }
}